# 页面类
from selenium.webdriver.common.by import By
from Base import Base
class Page(Base):
    # 用户名
    user_loc=(By.XPATH,'/html/body/div[1]/div/section/section/main/div[1]/div[2]/div[1]/div/input')
    def username(self,username):
        self.send_keys(self.user_loc,username)
    # 密码
    pwd_loc=(By.XPATH,'/html/body/div[1]/div/section/section/main/div[1]/div[2]/div[2]/div/input')
    def password(self,password):
        self.send_keys(self.pwd_loc,password)
    # 登录按钮
    btn_loc=(By.XPATH,'/html/body/div[1]/div/section/section/main/div[1]/div[2]/button[2]')
    def loginbtn(self):
        self.click(self.btn_loc)
    # 确认登录弹窗
    queren_loc=(By.XPATH,'/html/body/div[1]/div/section/section/main/div[2]/div/div/div/div[2]/button[2]')
    def queren(self):
        self.click(self.queren_loc)
